package org.example.booksystem.moudel;

import lombok.Data;

@Data
public class PageRequest {
    // 默认为1 和10
     private Integer currentPage = 1 ;
     private Integer pageSize = 10 ;
     private Integer offset ;
     // 偏移量offset
    public int getOffset(){
        return (currentPage-1)*pageSize ;
    }

}
